import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
// const path = require('path')
import path from "path"

export default defineConfig({
    plugins: [vue()],
    build: {
        target: ['edge90', 'chrome90', 'firefox90', 'safari15']
    },
    resolve: {
        // alias: [
        //     { find: '@', replacement: resolve(__dirname, 'src') }
        // ],
        alias: {
            "@": path.resolve(__dirname, "./src"),
        }
    },
    server: {
        open: false,
        host: 'localhost',
        port: 8080,
        proxy: {
            "/api": {
                // target: "http://localhost:3001"
                target: "http://82.157.150.149:3001"
            }
        }
    }
})
